import { createApp } from 'vue'
import App from './App.vue'
import router from './router' // 引入 vue-router
import { useUserStore } from './store' // 引入 pinia
import store from './store'
import './assets/css/index.css'
import 'animate.css'

// import '@bytemd/vue-next/dist/inde'

// 单独引入 ElMessage 和 ElMessageBox 的样式
import * as ElIcon from '@element-plus/icons-vue'

// Object.keys(ElIcon).forEach((key) => {
//   app.component(key, ElIcon[key])
// })

// import 'element-plus/theme-chalk/el-message.css'
// import 'element-plus/theme-chalk/el-message-box.css'
//
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/src/message.scss'
import ElementPlus from 'element-plus'
// import '@wangeditor/editor/dist/css/style.css' // 引入 css
// 获取基础数据
// await useUserStore().getData()
const app = createApp(App).use(store).use(ElementPlus).use(router).mount('#app')
